package pe.edu.unmsm.pacis.shca.domain.exception;

public class DomainException extends Exception {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3252265263721027340L;
	
	private String message;
	private String messageProp;
	private Exception rootCause;
	
	public DomainException(String message, String messageProp, Exception rootCause) {
		this.message = message;
		this.rootCause = rootCause;
		this.messageProp = messageProp;
	}
	
	/*
	public DomainException(String message) {
		// TODO Auto-generated constructor stub
		this.message = message;
	}

	public DomainException(Exception rootCause) {
		// TODO Auto-generated constructor stub
		this.rootCause = rootCause;
		this.message = rootCause.getMessage();
	}
	*/

	public Exception getRootCause() {
		return rootCause;
	}

	public String getMessage() {
		return message;
	}

	public String getMessageProp() {
		return messageProp;
	}
	
}
